﻿namespace Sample
{
    using System;
    using OpenSource.TumblrAPI;
    using OpenSource.TumblrAPI.DataObjects;
    using OpenSource.TumblrAPI.Interfaces;

    class Program
    {
        private static TumblrSettings settings;

        static void Main(string[] args)
        {
            settings = SettingsFactory.GetSettings();
            GetPostsWithTag("Dilbert");
            Console.ReadLine();
        }

        private static void GetPostsWithTag(string tag)
        {
            ITumblrBasic basic = TumblrApiFactory.CreateTumblrBasic(settings);
            TumblrPost[] posts = basic.RequestPostsWithTag(tag);
        }
    }
}
